package methodObj;

import java.text.DateFormat;
import java.util.Date;

public class Day0617_method {
    public static void main(String[] args) {
        Farm f=new Farm();
        f.setName("张三");
        f.setAge(32);
        f.setSex("男");

        f.setBirthday(new Date());
        System.out.println(f.toString());
        f.drink();
        f.cook("红烧豆腐","红烧猪蹄","凉拌黄瓜");

       // Farm f1=new Farm("李四","女",22);
      //  System.out.println(f1.toString());


        farm();
    }

    public static void farm(){
        System.out.println("真想回家种地！");
    }
}
